package org.spring.springboot.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.domain.Category;

import java.util.List;

public interface CategoryDao {

    List<Category> selectAll(@Param("userid") String userid);
    List<Category> selectByNameAndTitle(@Param("name") String name,@Param("title") String title);
    Category selectOne(@Param("id") String id);
    List<Category> selectByPid(@Param("pid") String pid);
    void save(Category symbol);
    void update(@Param("id") String id, @Param("name") String name,@Param("title") String title);
    void delete(@Param("id") String id);
}
